﻿using ExpressesClass.IPrints;
using ExpressesClass.Model;
using System;

namespace ExpressesClass.Util
{
    public class GetIPrint
    {
        public static IPrint IGet(Kddh kddh, int printCur, DateTime now)
        {
            switch (kddh.kdCompanys)
            {
                case "百世快递":
                    return new BestPrint(kddh, printCur, now);
                case "德邦快递":
                    return new DepponPrint(kddh, printCur, now);
                case "顺丰快递":
                    return new SfPrint(kddh, printCur, now);
                case "申通快递":
                    return new StoPrint(kddh, printCur, now);
                case "中通快递":
                    return new ZopPrint(kddh, printCur, now);
                case "跨越快递":
                    return new KyPrint(kddh);
                default:
                    return null;
            }
        }
    }
}
